<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <!-- v-show -> display:none -->
        <!-- v-if -> 节点直接删除了 -->
        <!-- template 不影响层级结构 template只能结合v-if使用 不能用v-show -->
        <temptate v-if="n===1">
            <h2>你好</h2>
            <h2>VUE2</h2>
            <h2>geekrose</h2>
        </temptate>
    </div>
    <script src="../vuejs/vue.js"></script>
    <script>
        const vm = new Vue({
            el : '#app',
            data() {
                return {
                    n : 0
                }
            },
            methods: {
                
            },
        })
    </script>
</body>
</html>